import Request from '@/components/pocky-request/index.js'

const apiUrl = {
	getIndexWapBanner: '/supplier/getSupplierWapAdvList',
	getSupCategory: '/supplier/getSupplierNavList',
}

/**
 * 获取手机端首页轮播图片
 * @param {Object} parameter
 */
export function getWapHomeBanner(params) {
	return Request().request({
	  url: apiUrl.getIndexWapBanner,
	  method: 'POST',
	  data: params
	})
}

/**
 * 首页商家分类
 * @param {Object} params
 */
export function getSupCategory(params) {
	return Request().request({
	  url: apiUrl.getSupCategory,
	  method: 'POST',
	  data: params
	})
}